class DataUsers < ActiveRecord::Migration
  def self.up
    # Vidage préalable de la table 
    down  
    # Création des pays
    execute "INSERT INTO users (id, login, email, crypted_password, salt, firstName, name, status)
             VALUES ('1', 'admin', 'jean-luc.michelot@bluewin.ch', '07204fd843bb8f7e89116720fd90339351b2c6f0', '3e2af0d0ff155e2d93de1baba418748a6625e79e', 'Jean-Luc', 'Michelot','admin')"

    execute "INSERT INTO users (id, login, email, crypted_password, salt, firstName, name, status)
             VALUES ('2', 'user1', 'michel.carrard@bluewin.ch', 'c4d3906190b2a9148f983cf24d457f977645314b', 'e157bd42c384d673c2bf8b9f0535d72f4ff297d3', 'Michel', 'Carrard','user')"

    execute "INSERT INTO users (id, login, email, crypted_password, salt, firstName, name, status)
             VALUES ('3', 'user2', 'romain.pousaz@yahoo.fr', '0e65749231d3f2089dc58742aa5d8719898ef5c2', '5cda226ba8a373f0105052af58463d19fa078538', 'Romain', 'Pousaz','user')"   

  end

  def self.down
    # Vidage de la table
    User.delete_all 
  end
end
